package zero.tech.games.gate.work;

import zero.tech.core.ZeroContext;
import zero.tech.core.work.AynWork;
import zero.tech.games.gate.util.PipeiUtil;

public class PipeiWork extends AynWork{

	@Override
	public void init(Object... objs) throws Exception {
	}

	@Override
	public void run() {
		while(true) {
			try {
				Thread.sleep(5000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			try {
				handle();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}

	private void handle() {
		PipeiUtil pipeiUtil = ZeroContext.getInstance(PipeiUtil.class);
		pipeiUtil.checkGameNotifyEnter();
	}

}
